package com.dhcc.core.modules.system.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.dhcc.core.framework.base.entity.BaseEntity;


/**
 * 群组成员
 * 
 * @ClassName: GroupMember
 * @Description: TODO
 * @author lifan
 * @date 2018-08-21 15:30:14
 */
@TableName("sys_group_member") 
public class GroupMember extends BaseEntity<GroupMember> {
	
	//用户id
	private Long userId;	
	//群组ID
	private Long groupId;	
		
	private User user;
	
	private Dept dept;
	
	private static final long serialVersionUID = 1L;
	
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	/**
	 * 设置：用户id
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户id
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：群组ID
	 */
	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}
	/**
	 * 获取：群组ID
	 */
	public Long getGroupId() {
		return groupId;
	}
	@Override
	public String toString() {
		return "GroupMemberEntity [userId=" + userId + ", groupId=" + groupId + ", user=" + user + "]";
	}
	
	
}
